<div id="page-top-outer">    

    <!-- Start: page-top -->
    <div id="page-top">

        <!-- start logo -->
        <div id="logo">
            <a href=""><img src="<?= ADMIN_IMG ?>shared/logo.png" width="156" height="40" alt=""></a>
        </div>
        <!-- end logo -->

        <div class="showhide-account" style="color: white; float: right; margin: 16px;font-weight: bold"><?php
$user_name = $this->session->userdata('user_name');
if (isset($user_name) && $user_name != null) {
    echo 'Xin chào <span style="color:Yellow">' . $user_name . '</span>';
} else {
    redirect(HOME_PAGE . ADMIN_PAGE . 'home');
}
?></div>
        <!--  end top-search -->
        <div class="clear"></div>

    </div>
    <!-- End: page-top -->

</div>

<div class="clear">&nbsp;</div>
<div class="nav-outer-repeat"> 
    <!--  start nav-outer -->
    <div class="nav-outer"> 

        <!-- start nav-right -->
        <div id="nav-right">

            <div class="nav-divider">&nbsp;</div>

            <a href="<?= HOME_PAGE . ADMIN_PAGE ?>home/logout" id="logout"><img src="<?= ADMIN_IMG ?>shared/nav/nav_logout.gif" width="64" height="14" alt=""></a>
            <div class="clear">&nbsp;</div>


        </div>
        <!-- end nav-right -->


        <!--  start nav -->
        <div class="nav">
            <div class="table">

                <!--                <ul class="select">
                                    <li><a href="#nogo"><b>Bảng điều khiển</b>[if IE 7]><!</a><![endif]
                
                                    </li>
                                </ul>
                
                                <div class="nav-divider">&nbsp;</div>-->
                <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_category"><b>Danh mục</b><!--[if IE 7]><!--></a><!--<![endif]-->
                         <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub">
                            <ul class="sub">
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_category">Tất cả danh mục</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_category/add_category">Thêm danh mục</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_accessory_category">Tất cả danh mục linh kiện</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_accessory_category/add_category">Thêm danh mục linh kiện</a></li>
                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>

                <div class="nav-divider">&nbsp;</div>
                <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_product"><b>Sản phẩm</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub show">
                            <ul class="sub">
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_product/new_products">Sản phẩm mới</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_product/old_products">Sản phẩm cũ</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_product/add_product">Thêm sản phẩm</a></li>

                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>

                <div class="nav-divider">&nbsp;</div>
                <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_accessory"><b>Linh kiện</b><!--[if IE 7]><!--></a><!--<![endif]-->
                              <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub">
                            <ul class="sub">

                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_accessory">Tất cả linh kiện</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_accessory/add_accessory">Thêm linh kiện</a></li>

                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>

                <div class="nav-divider">&nbsp;</div>



                <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_news"><b>Tin tức</b><!--[if IE 7]><!--></a><!--<![endif]-->
                <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub">
                            <ul class="sub">
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_news">Tất cả tin tức</a></li>
                                <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_news/add_news">Thêm tin tức</a></li>


                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>

                <div class="nav-divider">&nbsp;</div>
                <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_store"><b>Cửa hàng</b><!--[if IE 7]><!--></a><!--<![endif]-->
                                <!--[if lte IE 6]><table><tr><td><![endif]-->
                </ul>

                <div class="nav-divider">&nbsp;</div>


                <?php
                $user_role = $this->session->userdata('user_role');
                if (isset($user_role) && $user_role != null && $user_role == 0) {
                    ?>
                    <ul class="select"><li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_users"><b>Người dùng</b><!--[if IE 7]><!--></a><!--<![endif]-->
                                 <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div class="select_sub">
                                <ul class="sub">
                                    <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_users">Tất cả người dùng</a></li>
                                    <li><a href="<?= HOME_PAGE . ADMIN_PAGE ?>admin_users/add_user">Thêm người dùng</a></li>


                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <div class="nav-divider">&nbsp;</div>
                    <?php
                }
                ?>

                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
        <!--  start nav -->

    </div>
    <div class="clear"></div>
    <!--  start nav-outer -->
</div>